package com.speedchina.permission.domain.sys.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.speedchina.framework.base.TEntity;
import com.speedchina.framework.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 系统-角色用户关系表 实体类
 * @author hank
 * @date 2021-04-08 13:59:05
 */
@Data
@TableName("t_sys_role_user")
public class RoleUser extends TEntity<RoleUser> {
    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private String userId;
    /**
     * 角色ID
     */
    @ApiModelProperty(value = "角色ID")
    private String roleId;

    public RoleUser(){
    }

    public RoleUser(String userId,String roleId){
        this.userId = userId;
        this.roleId = roleId;
    }

}
